package day08_stream_file_charset.com.itheima.d2_file;

import java.io.File;
import java.io.IOException;

public class FileDemo3 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("D:/dlei.jpg");
        System.out.println("f1.createNewFile() = " + f1.createNewFile());

        File f2 = new File("D:/dlei.jpg");
        System.out.println("f2.mkdir() = " + f2.mkdir());

        File f3 = new File("D:/dlei.jpg");
        System.out.println("f3.mkdirs() = " + f3.mkdirs());

        System.out.println("f1.delete() = " + f1.delete());
        System.out.println("f2.delete() = " + f2.delete());
        System.out.println("f3.delete() = " + f3.delete());

    }
}
